package lkj.service.admin.impl;

import lkj.dao.admin.AdminDao;
import lkj.domain.admin.Admin;
import lkj.service.admin.AdminService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by lkj10 on 2017/3/12.
 */
@Service
@Transactional
public class AdminServiceImpl implements AdminService {
    @Resource
    private AdminDao adminDao;
    @Override
    public Admin findByUser(String username, String password) {
        return adminDao.findByUser(username,password);
    }
}
